<%@ page language="java" pageEncoding="UTF-8"%>

<html>
<%@ include file="/head.jsp"%>
<script type="text/javascript">
	function refCache(type){
		Ext.Ajax.request({
			url : parent.CTX_PATH + '/refreshCache',
			params : {
				'cacheType' : type
			},
			method : 'post',
			success : function(result) {
				Ext.Msg.alert("成功提示", "重载缓存成功~~~");
			},
			failure : function() {
				Ext.Msg.alert("错误提示", "重载缓存失败!");
			}
		});
		
	}
</script>
<body>
	<button onclick="refCache('all')">刷新所有缓存</button>
	<button onclick="refCache('v')">刷新验证缓存</button>
	<button onclick="refCache('e')">刷新执行sql缓存</button>
	<button onclick="refCache('u')">刷新用户权限缓存</button>
</body>
</html>